﻿CREATE PROCEDURE [dbo].[spFindAccount]
	@AccountNumber nvarchar(20)
AS
	select AccountID
	from tblAccount
	where [CHECKSUM] = CHECKSUM(@AccountNumber)
		and dbo.Decrypt(AccountNumber) = @AccountNumber

	RETURN 0